package com.atguigu.pojo;

import java.util.Date;

/**
 *
 * 对应数据库test中order表
 * @author hjwStrart
 * @time 2022-03-05 17:18
 */
public class Order {
    private Integer orderId;  //订单编号
    private String orderName;  //订单名
    private Date orderDate;   //下单日期

    public Order() {
    }

    public Order(Integer orderId, String orderName, Date orderDate) {
        this.orderId = orderId;
        this.orderName = orderName;
        this.orderDate = orderDate;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    public Date getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(Date orderDate) {
        this.orderDate = orderDate;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", orderName='" + orderName + '\'' +
                ", orderDate='" + orderDate + '\'' +
                '}';
    }
}
